package com.woniuxy.coachmodel.form;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class CoachLoginByPhoneCodeForm {

    @NotBlank(message = "电话不能为空")
    @Pattern(regexp = "1[3-9]\\d{9}", message = "电话格式不正确")
    private String coachPhone;
    @NotBlank(message = "验证码不能为空")
    @Pattern(regexp = "\\d{6}", message = "验证码必须是6位数字")
    @Size(min = 6, max = 6, message = "验证码长度必须为6位")
    private String phoneCode;
}
